#指定内核源码主目录
KERN_DIR = /home/robin/work/kernel-rockchip-nanopi4-linux-v4.4.y

#指定模块程序所在的目录
CUR_DIR = $(shell pwd)

#指定应用程序名
APP = led_test
all:
	make -C $(KERN_DIR) M=$(CUR_DIR) modules
#	aarch64-linux-gnu-gcc $(APP).c -o $(APP)


clean:
	make -C $(KERN_DIR) M=$(CUR_DIR) clean
	$(RM) $(APP)


	
install:
	scp *.ko $(APP) root@192.168.107.61:/drv_code

#指定当前目录哪些文件作为模块程序来编译
#obj-m = rk3568_gpiod_apil11.o
#obj-m = rk3568_gpiod_apil13.o
obj-m = rk3568_gpiod_apil14.o


